package com.service.impl;

import com.dao.CartDao;
import com.service.CartService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.math.BigDecimal;
import java.util.List;

public class CartServiceImpl implements CartService {

	private CartDao cartDao;

	public CartDao getCartDao() {
		return cartDao;
	}

	public void setCartDao(CartDao cartDao) {
		this.cartDao = cartDao;
	}

	@Override
	public void joinCartService(int gid, int num, int uid) {
		cartDao.insert("aa");
	}

	@Override
	public List<String> findCartByUid(int uid) {
		cartDao.findCartByUid(1);
		return null;
	}

	@Override
	public String findCartByCid(int cid) {
		cartDao.findCartByCid(1);
		return null;
	}
}
